/**
 * @打印三角形数表
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	int n, number;
	printf("打印几行三角形，需要多少*号\n\n");
	printf("n     *号数\n");

	number = 0;

	for (n=1; n<=10; n++) {
		number += n;
		printf("%2i     %2i\n", n, number);
	}

}
